using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace MalwareMultiScan.Api.Data.Models
{
    /// <summary>
    /// Scan result.
    /// </summary>
    public class ScanResult
    {
        /// <summary>
        /// Result id.
        /// </summary>
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }

        /// <summary>
        /// Result entries where key is backend id and value is <see cref="ScanResultEntry"/>.
        /// </summary>
        public Dictionary<string, ScanResultEntry> Results { get; set; } =
            new Dictionary<string, ScanResultEntry>();
    }
}